package com.ruoyi.qymlxin.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.qymlxin.mapper.ISysUserMapper;
import com.ruoyi.qymlxin.domain.ISysUser;
import com.ruoyi.qymlxin.service.IISysUserService;

/**
 * 用户Service业务层处理
 * 
 * @author qymlxin
 * @date 2022-05-03
 */
@Service
public class ISysUserServiceImpl implements IISysUserService 
{
    @Autowired
    private ISysUserMapper iSysUserMapper;

    /**
     * 查询用户
     * 
     * @param id 用户主键
     * @return 用户
     */
    @Override
    public ISysUser selectISysUserById(Long id)
    {
        return iSysUserMapper.selectISysUserById(id);
    }

    /**
     * 查询用户列表
     * 
     * @param iSysUser 用户
     * @return 用户
     */
    @Override
    public List<ISysUser> selectISysUserList(ISysUser iSysUser)
    {
        return iSysUserMapper.selectISysUserList(iSysUser);
    }

    /**
     * 新增用户
     * 
     * @param iSysUser 用户
     * @return 结果
     */
    @Override
    public int insertISysUser(ISysUser iSysUser)
    {
        return iSysUserMapper.insertISysUser(iSysUser);
    }

    /**
     * 修改用户
     * 
     * @param iSysUser 用户
     * @return 结果
     */
    @Override
    public int updateISysUser(ISysUser iSysUser)
    {
        return iSysUserMapper.updateISysUser(iSysUser);
    }

    /**
     * 批量删除用户
     * 
     * @param ids 需要删除的用户主键
     * @return 结果
     */
    @Override
    public int deleteISysUserByIds(Long[] ids)
    {
        return iSysUserMapper.deleteISysUserByIds(ids);
    }

    /**
     * 删除用户信息
     * 
     * @param id 用户主键
     * @return 结果
     */
    @Override
    public int deleteISysUserById(Long id)
    {
        return iSysUserMapper.deleteISysUserById(id);
    }
}
